package com.dxf.bigdata.D04_spark

class T01_Task extends Serializable {

  val datas = List(1, 2, 3, 4)
  val logic = (num: Int) => {
    num * 2
  }



  val logic2: (Int) => Int = _ * 2

  //计算
  def computer() = {
    datas.map(logic)
  }

}
